package com.grouppurchase.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@Data
@ApiModel("用户登录DTO")
public class UserLoginDTO {

    @ApiModelProperty(value = "openid", required = true, example = "o1234567890abcdef")
    @NotBlank(message = "openid不能为空")
    private String openid;

    @ApiModelProperty(value = "unionid", example = "union123456789")
    private String unionid;

    @ApiModelProperty(value = "昵称", example = "张三")
    private String nickname;

    @ApiModelProperty(value = "头像URL", example = "https://example.com/avatar.jpg")
    private String avatar;
}
